var counter = {
    model: {
        prop: 'init',
        event: 'current'
    },
    props: ['init'],
    template: '<button @click="numberClick">{{init}}</button>',
    methods: {
        numberClick: function () {
            this.init++;
            this.$emit('current', this.init);
        }
    }
}

export default {
    counter
}